package com.v5ba.server.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.v5ba.server.dao.LogRepository;
import com.v5ba.server.entity.SysLog;
import com.v5ba.server.service.ILogService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author yiren
 * @date 2018/6/17
 */
@Service(version = "1.0.0", group = "server-b")
public class LogServiceImpl implements ILogService {

    @Autowired
    private LogRepository logRepository;

    @Override
    public void addLog(String type, String content) {
        SysLog log = new SysLog();
        log.setType(type);
        log.setContent(content);
        logRepository.save(log);
    }
}
